package com.alennus.blog.domain;

import com.alennus.blog.dto.MediaDto;
import lombok.Data;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * Created by pactera on 2018/7/19.
 */
@Data
@Document
public class Record extends AbstractDocument {

    private String title;
    private String icon;
    @Transient
    private MediaDto mediaDto;

    private String content;

    private String createdDate;

    private String updateDate;

    private String createUserId;
    @Transient
    private Account createAccount;
    private String updateUserId;

    @Transient
    private Account updateAccount;

}
